
package com.itheima.stock.banner;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author zh
 * @created 2024-06-17 19:42
 * @description 项目启动成功后打印项目 logo
 */
@Slf4j
@Component
public class BannerApplicationRunner implements ApplicationRunner {

    /**
     * Spring 容器启动完成后执行该类中run 方法
     *
     * @param args incoming application arguments
     */
    @Override
    public void run(ApplicationArguments args) {
        log.info(BANNER);
    }


    /**
     * 项目logo 常量
     */
    public static final String BANNER =
            """
                    The project is starting...
                                                    _.-^^---....,,--
                                                _--                  --_
                                               <                        >)
                                               |                         |
                                                \\._                   _./
                                                   ```--. . , ; .--'''
                                                         | |   |
                                                      .-=||  | |=-.
                                                      `-=#$%&%$#=-'
                                                         | ;  :|
                                                _____.,-#%&$@%#~,._____
                                                                                                       
                    -------------The project was started successfully.-----------""";

}
